﻿using System;
using System.Collections.Generic;
using System.Text;
using GH.DAL;
using System.Data;

namespace GH.BLL
{
    public class ModelWorker
    {

        private readonly GH.DAL.ModelWorker dal = new GH.DAL.ModelWorker();


        //劳动模范
        public void Delete1(int ID)
        {
            dal.Delete1(ID);
        }

        //先进集体统计表
        public void Delete2(int ID)
        {
            dal.Delete2(ID);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList1(string strWhere)
        {
            return dal.GetList1(strWhere);
        }


        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList2(string strWhere)
        {
            return dal.GetList2(strWhere);
        }
         /// <summary>
        ///更新报表记录
        /// </summary>
        public bool UpdateList(System.Collections.Generic.List<GH.Model.劳动模范> listModel, System.Collections.Generic.List<GH.Model.先进集体统计表> listModel1, int intUnion, string strCurrentYear)
        {
            return dal.UpdateList(listModel, listModel1, intUnion, strCurrentYear);
        }

        public DataSet GetYearList()
        {
            return dal.GetYearList();
        }
    }
}
